﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
using T.FAS.Runtime.Base.Entity;

namespace T.FAS.Runtime.Metadata.Entity.MF
{
    // 基础形状类
    public abstract class ShapeBase
    {
        [JsonProperty("shape")]
        public string Shape { get; set; }

        [JsonProperty("id")]
        public string Id { get; set; }

        [JsonProperty("parent", NullValueHandling = NullValueHandling.Ignore)]
        public string Parent { get; set; }

        [JsonProperty("zIndex")]
        public int ZIndex { get; set; }
        [JsonProperty("ports", NullValueHandling = NullValueHandling.Ignore)]
        public Ports Ports { get; set; }

        [JsonIgnore]
        public virtual string RefMetaDataID => "";
        [JsonIgnore]
        public virtual string RefMetaDataType => "";
    }
}